/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Microsoft YaHei', sans-serif;
}

body {
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: #333;
  transition: color 0.3s;
}

a:hover {
  color: #428bca;
}

ul {
  list-style: none;
}

h2, h3 {
  margin-bottom: 15px;
  color: #2c3e50;
}

/* 头部样式 */
.header {
  background-color: #fff;
  padding: 15px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 100;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: 60px;
}

.logo img {
  height: 100%;
  vertical-align: middle;
}

.search-box {
  display: flex;
  align-items: center;
}

.search-input {
  padding: 8px 15px;
  border: 1px solid #ddd;
  border-radius: 20px;
  width: 250px;
  font-size: 14px;
  outline: none;
  transition: border 0.3s;
}

.search-input:focus {
  border-color: #428bca;
}

.search-btn {
  background-color: #428bca;
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-left: -30px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.search-btn:hover {
  background-color: #357ebd;
}

/* 导航栏样式 */
.navbar {
  background-color: #2c3e50;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav-list {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  overflow-x: auto;
  padding: 0 20px;
}

.nav-item {
  white-space: nowrap;
}

.nav-link {
  display: block;
  padding: 15px 20px;
  color: white;
  font-weight: 500;
  transition: background-color 0.3s;
}

.nav-link:hover {
  background-color: #34495e;
}

/* 图片展示区样式 */
.banner {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
}

.banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 公共版块样式 */
.section-title {
  text-align: center;
  padding: 30px 0 20px;
  font-size: 24px;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: #428bca;
}

/* 新闻版块样式 */
.news-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.news-item {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.news-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.news-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.news-title {
  padding: 10px 15px;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-desc {
  padding: 0 15px 10px;
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  display: -webkit-box;
  display: box; /* 补充标准写法 */
  -webkit-line-clamp: 2;
  line-clamp: 2; /* 补充标准属性 */
  -webkit-box-orient: vertical;
  box-orient: vertical; /* 补充标准写法 */
  overflow: hidden;
}

.news-link {
  display: block;
  padding: 0 15px 15px;
  color: #428bca;
  font-size: 14px;
  text-align: right;
}

/* 公告版块样式 */
.announcement-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.announcement-list {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.announcement-item {
  border-bottom: 1px solid #f0f0f0;
}

.announcement-item:last-child {
  border-bottom: none;
}

.announcement-link {
  display: flex;
  padding: 15px;
}

.announcement-date {
  width: 120px;
  color: #999;
  font-size: 14px;
}

.announcement-title {
  flex: 1;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 主内容区样式 */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.main-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.main-column {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
}

.column-title {
  font-size: 18px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 15px;
}

.column-list {
  list-style: none;
}

.column-item {
  padding: 8px 0;
  border-bottom: 1px dashed #f0f0f0;
}

.column-item:last-child {
  border-bottom: none;
}

.column-item a {
  display: block;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s;
}

.column-item a:hover {
  color: #428bca;
}

/* 专题网站版块样式 */
.special-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.special-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.special-item {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.special-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.special-image {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 10px;
}

.special-title {
  font-size: 14px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

/* 页脚样式 */
.footer {
  background-color: #2c3e50;
  color: white;
  padding: 30px 0;
  margin-top: 40px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.copyright, .备案信息 {
  margin: 5px 0;
  font-size: 14px;
}

.footer-links {
  margin-top: 15px;
}

.footer-links a {
  color: white;
  margin: 0 10px;
  font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 992px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .main-columns {
    grid-template-columns: 1fr;
  }
  
  .special-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
  
  .special-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .header-content {
    flex-direction: column;
    gap: 15px;
  }
  
  .search-box {
    width: 100%;
    justify-content: center;
  }
  
  .search-input {
    width: 100%;
    max-width: 300px;
  }
  
  .nav-list {
    justify-content: flex-start;
  }
  
  .special-grid {
    grid-template-columns: 1fr;
  }
}